﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SPCriteria.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   The sp criteria.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.DataAccess.SharePoint
{
    /// <summary>
    /// The sp criteria.
    /// </summary>
    public class SPCriteria : CriteriaBase
    {
        #region Fields

        /// <summary>
        /// The query.
        /// </summary>
        private QueryExpression query;


        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets a value indicating whether PublishingEnabled.
        /// </summary>
        public bool PublishingEnabled
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets QueryExpression.
        /// </summary>
        public QueryExpression QueryExpression
        {
            get
            {
                return this.query;
            }

            set
            {
                this.query = value;
            }
        }

        /// <summary>
        /// Sets QueryParam.
        /// </summary>
        public QueryParam SimpleQuery
        {
            set
            {
                this.query = new QueryExpression(value);
            }
        }

        #endregion
    }
}